import {ParamsType} from "@ant-design/pro-components";
import {addData, deleteById, pageData, updateById} from "@/services/base-request";

export const pageFaqAPI = (params: ParamsType) => {
  return pageData("/faq", params)
}

export const addFaqAPI = (data: API.IFaq) => {
  return addData("/faq", data)
}

export const updateFaqAPI = (data: API.IFaq) => {
  return updateById("/faq", data)
}

export const deleteFaqAPI = (id: string | number) => {
  return deleteById("/faq", id)
}
